package com.zmn.mcc.business.interfaces.staff.ip;


import com.zmn.mcc.model.entity.log.IpInfo;
import com.zmn.mcc.model.entity.staff.log.IpInfoVo;

import java.util.List;

/**
 * @author liubodong
 * @since 2021/01/28 22:04
 */
public interface StaffIpInfoBService {

    String LOCAL_IP = "127.0.0.1";

    String INTRANET = "192";

    /**
     * 批量新增ipInfo
     * @param ipInfoVoList
     */
    void insertIpInfo(List<IpInfo> ipInfoVoList);

    /**
     * 根据ip批量查询
     * @param ipList
     * @return
     */
    List<IpInfoVo> listIpInfo(List<String> ipList);


    /**
     * 解析ip地址
     * @param ip
     * @return
     */
    IpInfo locationByIP(String ip);
}
